package com.ruoyi.system.service.impl;

import java.util.List;

import com.ruoyi.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.UploadHistoryMapper;
import com.ruoyi.system.domain.UploadHistory;
import com.ruoyi.system.service.IUploadHistoryService;

/**
 * 【请填写功能名称】Service业务层处理
 *
 * @author ruoyi
 * @date 2025-04-02
 */
@Service
public class UploadHistoryServiceImpl implements IUploadHistoryService {
    @Autowired
    private UploadHistoryMapper uploadHistoryMapper;

    /**
     * 查询【请填写功能名称】
     *
     * @param id 【请填写功能名称】主键
     * @return 【请填写功能名称】
     */
    @Override
    public UploadHistory selectUploadHistoryById(Long id) {
        return uploadHistoryMapper.selectUploadHistoryById(id);
    }

    /**
     * 查询【请填写功能名称】列表
     *
     * @param uploadHistory 【请填写功能名称】
     * @return 【请填写功能名称】
     */
    @Override
    public List<UploadHistory> selectUploadHistoryList(UploadHistory uploadHistory) {
        return uploadHistoryMapper.selectUploadHistoryList(uploadHistory);
    }

    /**
     * 新增【请填写功能名称】
     *
     * @param uploadHistory 【请填写功能名称】
     * @return 结果
     */
    @Override
    public int insertUploadHistory(UploadHistory uploadHistory) {
        uploadHistory.setCreateTime(DateUtils.getNowDate());
        return uploadHistoryMapper.insertUploadHistory(uploadHistory);
    }

    /**
     * 修改【请填写功能名称】
     *
     * @param uploadHistory 【请填写功能名称】
     * @return 结果
     */
    @Override
    public int updateUploadHistory(UploadHistory uploadHistory) {
        return uploadHistoryMapper.updateUploadHistory(uploadHistory);
    }

    /**
     * 批量删除【请填写功能名称】
     *
     * @param ids 需要删除的【请填写功能名称】主键
     * @return 结果
     */
    @Override
    public int deleteUploadHistoryByIds(Long[] ids) {
        return uploadHistoryMapper.deleteUploadHistoryByIds(ids);
    }

    /**
     * 删除【请填写功能名称】信息
     *
     * @param id 【请填写功能名称】主键
     * @return 结果
     */
    @Override
    public int deleteUploadHistoryById(Long id) {
        return uploadHistoryMapper.deleteUploadHistoryById(id);
    }
}
